package com.xintong.visualinspection.service.impl;

import java.util.List;

import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xintong.visualinspection.bean.Constant;
import com.xintong.visualinspection.bean.Team;
import com.xintong.visualinspection.dao.master.TeamDao;
import com.xintong.visualinspection.service.BaseService;
import com.xintong.visualinspection.service.TeamService;

/**
 * 文件名：UserServiceImpl
 * 版本信息：日期：2017/3/30 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
 */
@Service
public class TeamServiceImpl extends BaseService implements TeamService {

    private static final org.slf4j.Logger logger = LoggerFactory.getLogger(TeamServiceImpl.class);


    @Autowired
    private TeamDao teamDao;


	@Override
	public List<Team> getAll() {
		// TODO Auto-generated method stub
		return teamDao.getAll();
	}


	@Override
	public Team getById(Long id) {
		// TODO Auto-generated method stub
		return teamDao.getOne(id);
	}


	@Override
	public List<Team> getByDeptId(Long deptId) {
		// TODO Auto-generated method stub
		return teamDao.getByDeptId(deptId);
	}


	@Override
	public void insert(Team team) {
		// TODO Auto-generated method stub
		teamDao.insert(team);
	}


	@Override
	public void update(Team team) {
		// TODO Auto-generated method stub
		teamDao.update(team);
	}


	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		teamDao.delete(id);
	}

}
